home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / FireMan.swf / scripts / frame_2641 / PlaceObject2_112_162 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-09-12  |  540b  |  22 lines

  1. onClipEvent(enterFrame){
  2.    if(espera)
  3.    {
  4.       c++;
  5.       if(c > WAIT && i < MAX)
  6.       {
  7.          espera = false;
  8.          generar = true;
  9.          i++;
  10.          c = 0;
  11.       }
  12.    }
  13.    if(generar)
  14.    {
  15.       z = _root.aleatorio(10,20);
  16.       init = {_x:(_root.aleatorio(0,15) + 1) * 16,_xscale:z,_yscale:z,dx:_root.aleatorio(1.5,2),dy:_root.aleatorio(0.5,1.5),xwide:_root.aleatorio(10,20),mover:true};
  17.       _root.snow.duplicateMovieClip("snow" + i,100 + i,init);
  18.       generar = false;
  19.       espera = true;
  20.    }
  21. }
  22.